package md.objects;

import md.constants.Constants;

public class GameObjects {

	public final static Turrent[] turrents = new Turrent[Constants.MAX_TURRENT_COUNT];
	public static int turrentCount = 0;
		
	public static EnemyWave[] waves = new EnemyWave[Constants.MAX_WAVE_COUNT];
	public static int waveCount = 0;
	public static EnemyWave currentWave;

	public static Enemy testEnemy = new Enemy(0, 0);
	
	public final static void init() {
		EnemyWave wave = new EnemyWave(10);
		waves[waveCount++] = wave;
		currentWave = wave;
	}
	
	public final static void addTurrent(Turrent t) {
		turrents[turrentCount++] = t;
	}
	
	public final static void removeTurrent(int i) {
		turrents[i] = turrents[--turrentCount];
	}
}
